/**
 * ProjectName:  mall-service
 * FileName:  Theme.java
 * PackageName:  com.cyou.mall.entity
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.dao;

import org.springframework.stereotype.Component;

import com.blx.entity.Theme;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  ThemeDao. <br/>
 * Description:  ThemeDao <br/>
 * @author wangwl
 * 2013-3-4 下午8:50:37 <br/>
 * @version 1.0
 */
@Component
public class ThemeDao extends BaseDao<Theme> {

	/**
	 * 保存Theme实体 <br/>
	 * @param theme
	 * @author wangwl
	 * 2013-3-4 下午9:08:04
	 */
	public void saveTheme(Theme theme) {
		this.save("saveTheme", theme);
	}
	/**
	 * 更新Theme实体<br/>
	 * @param theme
	 * @author wangwl
	 * 2013-3-4 下午8:59:52
	 */
	public void updateTheme(Theme theme) {
		this.update("updateTheme", theme);
	}
	/**
	 * 删除Theme实体 <br/>
	 * @param themeId
	 * @author wangwl
	 * 2013-3-4 下午9:00:14
	 */
	public void deleteThemeById(Integer themeId) {
		this.delete("deleteThemeById", themeId);
	}
	/**
	 * 根据id获取Theme实体 <br/>
	 * @param themeId
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:00:32
	 */
	public Theme getThemeById(Integer themeId) {
		return this.get("getById", themeId);
	}
	/**
	 * 分页查询Theme <br/>
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:01:23
	 */
	public Pagination<Theme> findPageThemeAll(int pageNumber, int pageSize) {
		return this.findPage("findPageAll", pageNumber, pageSize);
	}
}



